package top.jolyoulu.codegenweb.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import top.jolyoulu.codegenweb.entity.po.GenTemplateFile;

/**
 * @Author: JolyouLu
 * @Date: 2023/4/8 14:46
 * @Description
 */
@Data
@NoArgsConstructor
public class GenTemplateFileVO {

    /** id */
    private String id;

    /** gen_template_group_id */
    private String groupId;

    /** 模板名称 */
    private String templateName;

    /** 生成文件名称 */
    private String genFileName;

    /** 模块名称(多层 . 隔开) */
    private String model;

    /** file_info_id */
    private String fileId;

    public GenTemplateFileVO(GenTemplateFile genTemplateFile) {
        this.id = genTemplateFile.getId();
        this.templateName = genTemplateFile.getTemplateName();
        this.genFileName = genTemplateFile.getGenFileName();
        this.model = genTemplateFile.getModel();
        this.fileId = genTemplateFile.getFileId();
        this.groupId = genTemplateFile.getGroupId();
    }
}
